package main
import "fmt"
type calc func(int,int) int
type myint int
func add(x,y int)int{
	return x+y
}
func sub(x,y int)int{
	return x-y
}
func test(){
	fmt.Println("test...")
}
func main(){
	var c calc
	c=sub
	fmt.Printf("c的类型:%T\n",c)
	fmt.Println(c(220,155))
    f:=sub
	fmt.Printf("f的类型:%T\n",f)
	fmt.Println(c(420,265))
	var a int=10
	var b myint=28
	fmt.Printf("a的类型:%T\n",a)
	fmt.Println("------")
	fmt.Printf("b的类型:%T\n",b)
	fmt.Println(a+int(b))
}